/*
 * @Description: {{ByRuin}}
 * @Version: 2.0
 * @Author: Ruin 🍭
 * @Date: 2021-12-20 11:27:35
 * @LastEditors: 刘引
 * @LastEditTime: 2022-01-04 17:36:28
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import index from "../views/index.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "index",
    // @ts-ignore
    component: index,
  },
  {
    path: "/home",
    name: "home",
    component: () => import("../views/home/index.vue"),
  },
  {
    path: "/submit",
    name: "submit",
    component: () => import("../views/submit/index.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
